package reflect;

public class Person {
    private String name = "张三";
    private int age = 22;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void sayHello() {
        System.out.println("Hello");
    }

    public void sayHi() {
        System.out.println("Hi");
    }

    public void sayGoodbye() {
        System.out.println("sayGoodbye");
    }

    public void watchTv() {
        System.out.println("看电视");
    }

    public void playGame() {
        System.out.println("玩游戏");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
